package cn.iocoder.yudao.module.cmt.dal.mysql.team;

import java.util.*;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.cmt.dal.dataobject.team.TeamApplyDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.cmt.controller.admin.team.vo.*;

@Mapper
public interface TeamApplyMapper extends BaseMapperX<TeamApplyDO> {

    default PageResult<TeamApplyDO> selectPage(TeamApplyPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<TeamApplyDO>()
                .betweenIfPresent(TeamApplyDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(TeamApplyDO::getId));
    }

}
